package com.twu.biblioteca;

public class BibliotecaApp {

    LibraryManager libMgr;

    public void start()
    {
        Presenter presenter = new Presenter();
        String userChoice ="";
        presenter.showWelcomeScreen();
        do {
            userChoice = presenter.showMenuScreen();
            Presenter.Say(userChoice);
            libMgr.serviceUserChoice(userChoice);
        }while(!userChoice.equals("Exit"));
        libMgr.save(Constants.dataStorage);
        presenter.showThankyouScreen();

    }
    BibliotecaApp()
    {
        libMgr = new LibraryManager();
    }
    public static void main(String[] args) {
        BibliotecaApp bibliotecaApp = new BibliotecaApp();
        bibliotecaApp.start();
    }
}
